package com.znsd.zl.app.housecollect.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.znsd.zl.app.housecollect.entity.HouseCollectEntity;
import com.znsd.zl.app.housecollect.vo.HouseCollectPageReqVO;
import com.znsd.zl.utils.R;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @ClassName IHouseCollectDao
 * @Description 用户收藏房屋持久层接口
 * @Author jaypdd
 * @Date 2020/8/22 20:34
 * @Version v1.0
 */
@Mapper
public interface IHouseCollectDao extends BaseMapper<HouseCollectEntity> {

	/**
	 * 根据用户id查询当前用户收藏的所有房屋
	 * @param reqVO     用户房屋收藏请求vo对象
	 * @param page      分页对象
	 * @return  返回当前用户收藏的房屋列表
	 */
	List<HouseCollectEntity> pageSelectHouseCollect(IPage<HouseCollectEntity> page, @Param("reqVO")HouseCollectPageReqVO reqVO);
}
